package cn.test;

import cn.dao.UserDao;
import cn.domain.User;
import org.junit.Test;

public class test {
    @Test
    public void testLogin(){
        User loginUser=new User();
        loginUser.setUsername("zhangsan");
        loginUser.setPassword("123456");

        UserDao dao=new UserDao();
        User user=dao.login(loginUser);

        System.out.println(user);
    }
}
